package com.aorise.model.expose;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * @Auther: zhouhao
 * @Date: 2019/7/11
 * @Description:    箱内环境状态
 */
@Validated
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="Environ",description="箱内环境状态")
public class Environ {

    @ApiModelProperty(value = "湿度值  （单位：%）",example = "30",dataType = "int")
    @NotNull(message = "湿度值不能为空")
    private Integer Humer;

    @ApiModelProperty(value = "温度值   （单位：度）",example = "25",dataType = "int")
    @NotNull(message = "温度值不能为空")
    private Integer Temper;

    @ApiModelProperty(value = "水浸:true,无水浸:false",example = "true",dataType = "boolean")
    @NotNull(message = "水浸值不能为空")
    private boolean Influ;

    @JsonProperty("Humer")
    public Integer getHumer() {
        return Humer;
    }

    @JsonProperty("Humer")
    public void setHumer(Integer humer) {
        Humer = humer;
    }

    @JsonProperty("Temper")
    public Integer getTemper() {
        return Temper;
    }

    @JsonProperty("Temper")
    public void setTemper(Integer temper) {
        Temper = temper;
    }

    @JsonProperty("Influ")
    public boolean isInflu() {
        return Influ;
    }

    @JsonProperty("Influ")
    public void setInflu(boolean influ) {
        Influ = influ;
    }
}
